<?php

namespace app\branch\model;
use think\Model;
//use \app\common\model\CapitalDetails as commonIntergrates;
/**
 * 分公司会员资金管理模型
 */
class Intergrates extends model
{
    use \app\common\traits\model\TraitModel;
    protected $table = 'capital_details';
    protected $autoWriteTimestamp = 'timestamp';
    protected $createTime = 'created_at';
    protected $updateTime = 'updated_at';

    public function getDetailLists($querys=[])
    {
        return $this->getInfoList(array_merge($querys, ['types' => 'integral']),'created_at desc');
    }
    public function getUserAccount($value)
    {
    	return model('Users')->where('id',$value)->value('mobile');
    }
}
